package com.v9.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.v9.common.core.domain.AbstractUidEntity;
import com.v9.common.model.GenderTypeEnum;
import com.v9.system.domain.model.EducationalBackgroundEnum;
import lombok.Data;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

import java.util.Date;

/**
 * 用户对象 sys_user
 *
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_user_info",common = "用户")
public class UserInfo extends AbstractUidEntity
{
    @TableField(common = "登录名称")
    private String username;
    @TableField(common = "工号")
    private String jobNumber;
    @TableField(common = "入职时间")
    Date entryTime;
    @TableField(common = "真实名称")
    private String realName;
    @TableField(common = "签名",length = 64)
    private String sign;
    @TableField(common = "生日")
    private Date birthday;
    @TableField(common = "密码")
    private String password;
    @TableField(common = "部门ID")
    private Long deptId;
    @TableField(common = "扩展部门id，用于搜索")
    private String deptIds;
    @TableField(common = "岗位")
    private Long positionId;
    @TableField(common = "昵称")
    private String nickName;
    @TableField(common = "用户邮箱")
    private String email;
    @TableField(common = "手机号码")
    private String phone;
    @TableField(common = "用户性别")
    private GenderTypeEnum genderType;
    @TableField(common = "学历")
    EducationalBackgroundEnum educationalBackground;
    @TableField(common = "用户头像",length = 128)
    private String icon;
    @TableField(common = "排序")
    private Integer seq;
    @TableField(common = "状态")
    private Boolean status;
    @TableField(common = "状态")
    private String loginIp;
    @TableField(common = "最后登录时间")
    private Date loginDate;
    @TableField(common = "备注",jdbcType = JdbcType.CLOB)
    private String remark;
    public String getPin() {
        return getId();
    }

    public void setPin(String pin) {
        setId(pin);
    }

    public UserInfo() {

    }
}
